const express = require('express');
const router = express.Router();
const { addAnnotation, getAnnotations, deleteAnnotation } = require('../controllers/annotationController');

// 添加批注
router.post('/versions/:versionId/annotations', addAnnotation);

// 获取版本的所有批注
router.get('/versions/:versionId/annotations', getAnnotations);

// 删除批注
router.delete('/annotations/:annotationId', deleteAnnotation);

module.exports = router;